package com.gm.manager.common.entity.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zhuZhaoYang
 * @date 2021/8/7 13:51
 */
@TableName("user")
@Data
public class UserDaoEntity {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("username")
    @NotBlank(message = "请输入用户昵称")
    private String userName;
    @TableField("password")
    @NotBlank(message = "请输入密码")
    private String password;
    @TableField("token")
    private String token;
    @TableField("name")
    @NotBlank(message = "请输入姓名")
    private String name;
    @TableField("actorId")
    @NotNull(message = "请选择角色")
    private Integer actorId;
    @TableField("departmentId")
    @NotNull(message = "请选择部门")
    private Integer departmentId;
    @TableField("telNumber")
    @NotBlank(message = "请输入电话或邮箱")
    private String telNumber;
}
